package com.lemo.client;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.lemo.model.Provider;

/**
 * 使用@FeignClient("lemo-microservice-eureka-provider")注解绑定lemo-microservice-
 * eureka-provider服务，还可以使用url参数指定一个URL。
 * 
 * @author lemo
 */
@FeignClient(name = "lemo-microservice-eureka-provider")
public interface UserFeignClient {

	@RequestMapping("/{id}")
	public Provider findByIdFeign(@RequestParam("id") Long id);
}
